Don't use stock APIs in the bloatpad example
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Fri, 21 Jun 2013 19:21:23 +0000 (15:21 -0400)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Mon, 24 Jun 2013 18:50:01 +0000 (14:50 -0400)
examples/bloatpad.c

index bf31051febfe19fb0ebb9b274479500b1b7f02b1..b7664afa8249dc6e2ebd059f4dcfa1db2e7cb6b2 100644 (file)
@@ -139,15 +139,18 @@ new_window (GApplication *app,
   gtk_container_add (GTK_CONTAINER (window), grid);
 
   toolbar = gtk_toolbar_new ();
-  button = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_JUSTIFY_LEFT);
+  button = gtk_toggle_tool_button_new ();
+  gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (button), "format-justify-left");
   gtk_actionable_set_detailed_action_name (GTK_ACTIONABLE (button), "win.justify::left");
   gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (button));
 
-  button = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_JUSTIFY_CENTER);
+  button = gtk_toggle_tool_button_new ();
+  gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (button), "format-justify-center");
   gtk_actionable_set_detailed_action_name (GTK_ACTIONABLE (button), "win.justify::center");
   gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (button));
 
-  button = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_JUSTIFY_RIGHT);
+  button = gtk_toggle_tool_button_new ();
+  gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (button), "format-justify-right");
   gtk_actionable_set_detailed_action_name (GTK_ACTIONABLE (button), "win.justify::right");
   gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (button));